MX28: DMA: Prolong the DMA timeout
authorMarek Vasut <[email protected]>
Tue, 21 Aug 2012 16:17:26 +0000 (16:17 +0000)
committerAlbert ARIBAUD <[email protected]>
Sat, 1 Sep 2012 12:58:29 +0000 (14:58 +0200)
Load from SPI flash can create a long DMA chain, which can take long
time to transfer. Change the DMA timeout to roughly 10s to prevent
such long chains misreporting errors.

Signed-off-by: Marek Vasut <[email protected]>
Cc: Fabio Estevam <[email protected]>
Cc: Otavio Salvador <[email protected]>
Cc: Stefano Babic <[email protected]>
drivers/dma/apbh_dma.c

index ca5a32fc0900055f9ea97e8f7d3b0ecb81ad7335..37a941cc5bb2361022ed74c109362c85eb8ca170 100644 (file)
@@ -526,7 +526,7 @@ static int mxs_dma_wait_complete(uint32_t timeout, unsigned int chan)
  */
 int mxs_dma_go(int chan)
 {
-       uint32_t timeout = 10000;
+       uint32_t timeout = 10000000;
        int ret;
 
        LIST_HEAD(tmp_desc_list);